package com.lakeworks.mapper;

import com.lakeworks.domain.SysDefective;

import java.util.List;

/**
 * lakeMapper接口
 *
 * @author lake
 * @date 2023-02-10
 */
public interface SysDefectiveMapper {
    /**
     * 查询lake
     *
     * @param id lake主键
     * @return lake
     */
    SysDefective selectSysDefectiveById(Long id);

    /**
     * 查询lake列表
     *
     * @param sysDefective lake
     * @return lake集合
     */
    List<SysDefective> selectSysDefectiveList(SysDefective sysDefective);

    /**
     * 新增lake
     *
     * @param sysDefective lake
     * @return 结果
     */
    int insertSysDefective(SysDefective sysDefective);

    /**
     * 修改lake
     *
     * @param sysDefective lake
     * @return 结果
     */
    int updateSysDefective(SysDefective sysDefective);

    /**
     * 删除lake
     *
     * @param id lake主键
     * @return 结果
     */
    int deleteSysDefectiveById(Long id);

    /**
     * 批量删除lake
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteSysDefectiveByIds(String[] ids);


    List<SysDefective> selectSysRiskList();
}
